package com.hm.order.mongo.domain;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.hm.common.model.BaseModel;
import com.hm.order.mongo.def.OrderOperationStatu;
import com.hm.order.mongo.util.OrderMongoDataDef;

import lombok.Getter;
import lombok.Setter;

/**
 * @author shishun.wang
 * @date 下午5:18:13 2016年7月20日
 * @version 1.0
 * @describe
 */
@Setter
@Getter
@Document(collection = OrderMongoDataDef.Db.Mongo.PREFIX + "order_items")
public class OrderItem extends BaseModel {

	private static final long serialVersionUID = 1L;
	
	@Field("order_id")
	private String orderId;

	@Field("order_num")
	private String orderNum;

	@Field("target_id")
	private String targetId;// 订单所属对象编号

	private Integer numbers;

	private Double price;

	@Field("total_price")
	private Double totalPrice;

	@Field("operation_statu")
	private OrderOperationStatu operationStatu;

}
